<%--
  Created by IntelliJ IDEA.
  User: 梁家源
  Date: 2021/4/9
  Time: 17:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商品下架管理</title>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/css/layui.css"/>
    <script src="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/layui.js" type="text/javascript"
            charset="UTF-8"></script>
    <script src="${pageContext.request.contextPath}/static/script/jquery-1.7.2.js" type="text/javascript"
            charset="UTF-8"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <div class="layui-header">
        <div class="layui-logo">
            <a href="ShowALLGoods" style="color: #009688;">龙洞闲置购物系统</a>
        </div>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item">
                <a href="ShowALLGoods">首页</a>
            </li>
        </ul>
        <%--</form>--%>
        <%@include file="../common/head.jsp" %>
    </div>

    <div class="layui-container">
        <div class="layui-row" style="margin-top: 50px">
            <%--商品内容--%>
            <div class="layui-col-md7">
                <div class="layui-row">
                    <div class="layui-col-md5">
                        <c:if test="${OSgood.gimg_path==''}">
                            <img src="${pageContext.request.contextPath}/static/images/white1.jpg"
                                 style="max-width: 90%;max-height: 90%;" alt="图片加载失败">
                        </c:if>
                        <c:if test="${OSgood.gimg_path!=''}">
                            <img src="${OSgood.gimg_path}"
                                 style="max-width: 90%;max-height: 90%;" alt="图片加载失败">
                        </c:if>
                    </div>
                    <div class="layui-col-md6">
                        <div class="layui-row" style="font-size: 20px;color: black;">
                            <span style="font-size: 18px;color: gray;">商品名： </span>${OSgood.gname}
                        <hr></div>
                        <!-- 价格 -->
                        <div class="layui-row" style="font-size: 20px;color: red;">
                            <span style="font-size: 18px;color: gray;">价格： </span>¥ ${OSgood.gprice}
                            <hr></div>
                        <%-- 商品类别 --%>
                        <div class="layui-row" style="font-size: 20px;color: rebeccapurple;">
                            <span style="font-size: 18px;color: gray;">商品类别： </span>${OSgood.gcid}
                        <hr></div>
                        <%-- 商品描述 --%>
                        <div class="layui-row" style="font-size: 20px;color: dimgrey">
                            <span style="font-size: 18px;color: gray;">商品描述： </span>
                            <c:if test="${OSgood.gdetail==''}">
                                （无）
                            </c:if>
                            <c:if test="${OSgood.gdetail!=''}">
                                ${OSgood.gdetail}
                            </c:if>
                        <hr></div>
                        <%-- 上架时间 --%>
                        <div class="layui-row" style="font-size: 18px;color: rebeccapurple">
                            <span style="font-size: 18px;color: gray;">上架时间： </span>${OSgood.gtime}
                        <hr></div>
                        <%-- 卖家 --%>
                        <div class="layui-row" style="font-size: 20px;color: darkslategrey">
                            <span style="font-size: 18px;color: gray;">卖家： </span>${OSgood.guname}
                        </div>
                    </div>
                </div>
            </div>
            <%--下架原因填写--%>
            <div class="layui-col-md5">
                <form class="layui-form layui-form-pane" action="${pageContext.request.contextPath}/offShelfGoods" method="post">
                    <input type="hidden" name="gid" value="${OSgood.gid}"/>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">下架原因</label>
                        <div class="layui-input-block">
                            <textarea name="reason" lay-verify="required" placeholder="请描述该商品涉及的违规内容或该商品下架原因"
                                  class="layui-textarea"
                            style="height: 222px">
                            </textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="formDemo">提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>

                </form>

            </div>
        </div>

    </div>

</div>


</body>
</html>
